package net.wanho.controller;

import io.swagger.annotations.Api;
import net.wanho.po.Student;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-08-20 9:06
 * Description：<描述>
 */
@Api(tags = "03.学生模块")
@RestController
@RequestMapping("/students")
public class StudentController {

    @GetMapping
    public AjaxResult list() {
        List<Student> list = new ArrayList<>();
        list.add(new Student(1001, "张三", 18, "男", "北京", new Date()));
        list.add(new Student(1002, "李四", 19, "女", "上海", new Date()));
        list.add(new Student(1003, "王五", 20, "男", "广州", new Date()));
        list.add(new Student(1004, "赵六", 21, "女", "深圳", new Date()));

        return AjaxResult.success(list);
    }

}
